home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Shareware
/
Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso
/
mac
/
DOS
/
MATH
/
MRCRY209
/
DECAY.EKA
< prev
next >
Wrap
Text File
|
1992-11-04
|
396b
|
12 lines
; This problem demonstrates how to solve a user-defined
; transcendental function of time.
; The problem is to calculate MassUnknown, the mass of
; 100 kg uranium 238 after one million years.
; Also calculate how long it would take to decay to 1 kg.
Mass(Years) := InitialMass * 2^(-Years/HalfLife)
InitialMass = 100
HalfLife = 10e6
MassUnknown = Mass(1e6)
1 = Mass(TimeUnknown)